﻿using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Core60
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void Btn_Click(object sender, RoutedEventArgs e)
        {
            //Microsoft.Data.SqlClient.SqlConnection con=new("aaaa");
 
            string s = "ppp";
            var temp= s.Get();
            foreach (var item in temp.GetType().GetProperties())
            {

            }
            var m = new Model() { Name = "aaaaa",Items=new List<int>() { 1, 2, 3, 4, 5, 6, 7 } };
            typeof(Model).GetProperty("Items")?.GetValue(m,null);
        }
    }
    public static class M
    {
        public static string Get(this string sss)
        {
            string str = "";
            sss += "Get";
            return sss;
        }
    }

    public class Model
    {
        public string Name { get; set; }

        public List<int> Items { get; set; }
    }
}